from django.conf.urls import url, include
from rest_framework import routers
from tutorial.quickstart import views
from django.contrib import admin
from django.urls import path

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
# router.register(r'groups', views.GroupViewSet)

# 使用自动URL路由连接我们的API。
# 另外，我们还包括支持浏览器浏览API的登录URL。
urlpatterns = [

    url(r'^', include(router.urls)),
    # url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),

    url(r'^url-test', views.urlTest),
    # path('', views.index),
    # path('blog/', include('blog.urls')),
    path('admin/', admin.site.urls),
    path('quick/', include('tutorial.quickstart.urls')),



    # path('snippets/', include('snippets.urls')),
    url(r'^', include('snippets.urls')),
    url(r'^', include('blog.urls')),

]